package com.ruoyi.merchandise.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订购信息对象 tb_orderInfo
 * 
 * @author ruoyi
 * @date 2025-04-21
 */
public class TbOrderinfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
    private String linkId;

    /** 成品名称 */
    @Excel(name = "成品名称")
    private String productId;

    /** 渠道 */
    @Excel(name = "渠道")
    private String channelId;

    /** $column.columnComment */
    private String outTradeNo;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 价格 */
    @Excel(name = "价格")
    private String amount;

    /** 订购时间 */
    @Excel(name = "订购时间")
    private String orderTime;

    /** $column.columnComment */
    private Long orderStatus;

    /** 订购code */
    @Excel(name = "订购code")
    private String resultCode;

    /** 订购信息 */
    @Excel(name = "订购信息")
    private String resultMsg;

    /** $column.columnComment */
    private String errorCode;

    /** 兑换状态 */
    @Excel(name = "兑换状态")
    private String closeStatus;

    /** 兑换时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "兑换时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date closeTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setLinkId(String linkId) 
    {
        this.linkId = linkId;
    }

    public String getLinkId() 
    {
        return linkId;
    }

    public void setProductId(String productId) 
    {
        this.productId = productId;
    }

    public String getProductId() 
    {
        return productId;
    }

    public void setChannelId(String channelId) 
    {
        this.channelId = channelId;
    }

    public String getChannelId() 
    {
        return channelId;
    }

    public void setOutTradeNo(String outTradeNo) 
    {
        this.outTradeNo = outTradeNo;
    }

    public String getOutTradeNo() 
    {
        return outTradeNo;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setAmount(String amount) 
    {
        this.amount = amount;
    }

    public String getAmount() 
    {
        return amount;
    }

    public void setOrderTime(String orderTime) 
    {
        this.orderTime = orderTime;
    }

    public String getOrderTime() 
    {
        return orderTime;
    }

    public void setOrderStatus(Long orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public Long getOrderStatus() 
    {
        return orderStatus;
    }

    public void setResultCode(String resultCode) 
    {
        this.resultCode = resultCode;
    }

    public String getResultCode() 
    {
        return resultCode;
    }

    public void setResultMsg(String resultMsg) 
    {
        this.resultMsg = resultMsg;
    }

    public String getResultMsg() 
    {
        return resultMsg;
    }

    public void setErrorCode(String errorCode) 
    {
        this.errorCode = errorCode;
    }

    public String getErrorCode() 
    {
        return errorCode;
    }

    public void setCloseStatus(String closeStatus) 
    {
        this.closeStatus = closeStatus;
    }

    public String getCloseStatus() 
    {
        return closeStatus;
    }

    public void setCloseTime(Date closeTime) 
    {
        this.closeTime = closeTime;
    }

    public Date getCloseTime() 
    {
        return closeTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("linkId", getLinkId())
            .append("productId", getProductId())
            .append("channelId", getChannelId())
            .append("outTradeNo", getOutTradeNo())
            .append("phone", getPhone())
            .append("amount", getAmount())
            .append("orderTime", getOrderTime())
            .append("orderStatus", getOrderStatus())
            .append("resultCode", getResultCode())
            .append("resultMsg", getResultMsg())
            .append("errorCode", getErrorCode())
            .append("closeStatus", getCloseStatus())
            .append("closeTime", getCloseTime())
            .toString();
    }
}
